<template>
  <approval ref="approval" >
    <el-card slot="main">
          <projHandleDisplay ref='projHandleDisplay'></projHandleDisplay>
    </el-card>
  </approval>
</template>

<script>
  import Approval from '@/pages/biz/proj/common/ApprovalCommon'
   
  export default {
    name: 'Approval2',
    components:{
      projHandleDisplay: require("@/pages/biz/proj/projDisplay/projHandleDisplay.vue").default,
      Approval
    },
    data(){
      return {
        viewHide : true,
      }
    },
    mounted() {
      this.loanBusinessInfo();
    },
    methods: {
      loanBusinessInfo(){
        this.$api
        .post("wf/common/approval?id=" + this.$route.query.id)
        .then(res => {
          if (res.status === "0") {
            if(res.data != null){
              let projectId = res.data.businessRelation.mid;
              this.$refs.projHandleDisplay.innit(projectId);
            }
          }
        });

        }
        
      
      
    }
  }
</script>

<style scoped>

</style>
